From: Keir Fraser Date: Thu, 2 May 2013 20:04:08 +0000 (+0100) Subject: x86: Fix __prepare_to_wait() asm test for stack size X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6919 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=6248dec1b4f69d26d1687ab9b3d0e87a81f10c42;p=xen.git x86: Fix __prepare_to_wait() asm test for stack size Signed-off-by: Keir Fraser --- diff --git a/xen/common/wait.c b/xen/common/wait.c index 4d6924fd27..3c9366c978 100644 --- a/xen/common/wait.c +++ b/xen/common/wait.c @@ -145,7 +145,7 @@ static void __prepare_to_wait(struct waitqueue_vcpu *wqv) "push %%rax; push %%rbx; push %%rdx; " "push %%rbp; push %%r8; push %%r9; push %%r10; push %%r11; " "push %%r12; push %%r13; push %%r14; push %%r15; call 1f; " - "1: addq $2f-1b,(%%rsp); sub %%esp,%%ecx; cmp %3,%%ecx; jbe 3f; " + "1: addq $2f-1b,(%%rsp); sub %%esp,%%ecx; cmp %3,%%ecx; ja 3f; " "mov %%rsp,%%rsi; 2: rep movsb; mov %%rsp,%%rsi; 3: pop %%rax; " "pop %%r15; pop %%r14; pop %%r13; pop %%r12; " "pop %%r11; pop %%r10; pop %%r9; pop %%r8; "